<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path;
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script src="js/jquery/2.0.0/jquery.min.js"></script>
<link href="css/bootstrap/3.3.6/bootstrap.min.css" rel="stylesheet">
<script src="js/bootstrap/3.3.6/bootstrap.min.js"></script>
<link href="css/back/style.css" rel="stylesheet">
<title>Insert title here</title>
</head>
<script type="text/javascript">
function checkEmpty(id,name){
	var value = $("#"+id).val();
	if(value.length==0){
		alert(name+"不能为空");
		$("#"+id)[0].focus();
		return false;
	}
	return true;
}

function checkNumber(id,name){
	var value = $("#"+id).val();
	if(value.length == 0){
		alert(name+"不能为空");
		$("#"+id)[0].focus();
		return false;
	}
	return true;
}

function checkInt(id,name){
	var value = $("#"+id).val();
	if(value.length == 0){
		alert(name+"不能为空");
		$("#"+id)[0].focus();
		return false;
	}
	return true;
}

$(function(){
	$("a").click(function(){
		var deleteLink = $(this).attr("deleteLink"); 
		if(deleteLink == "true"){
			var confirmDelete = confirm("确定要删除吗?");
			if(confirmDelete)
				return true;
			return false;
		}
	});
});
</script>

</html>